using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace BetaIto.ChaosDAV
{
    public partial class RenameForm : Form
    {
        public RenameForm()
        {
            InitializeComponent();
        }

        public string OldFileName
        {
            get { return _oldFileNameText.Text; }
            set { _oldFileNameText.Text = value; }
        }

        public string NewFileName
        {
            get { return _newFileNameText.Text; }
            set { _newFileNameText.Text = value; }
        }

        public string Folder
        {
            get { return _folderText.Text; }
            set { _folderText.Text = value; }
        }

        private void _newFileNameText_TextChanged(object sender, EventArgs e)
        {
            _okButton.Enabled = (_newFileNameText.TextLength > 0 && _newFileNameText.Text != _oldFileNameText.Text);
        }

        private void RenameForm_Load(object sender, EventArgs e)
        {
            ActiveControl = _newFileNameText;
        }

    }
}